package com.example.nfctagcommons.utils;

import android.content.Context;
import android.content.SharedPreferences;

public class SharedPreferencesUtils {
	public static final String APPLICATION_LANGUAGE = "APPLICATION_LANGUAGE";
	public static final String LOGIN 				= "LOGIN";
	public static final String GUARD_NAME 			= "GUARD_NAME";
	public static final String MY_ASSIGNED_LOCALS 	= "MY_ASSIGNED_LOCALS";

	public static SharedPreferences getSharedPreferences(Context context, Class c) {
	    return context.getSharedPreferences(c.getSimpleName(), Context.MODE_PRIVATE);
	}
	public static void storePreference(Context context, String key, String value, SharedPreferences prefs) {
	    SharedPreferences.Editor editor = prefs.edit();
	    editor.putString(key, value);
	    editor.commit();
	}
}
